<?php

namespace addons\Overtime\common\enums;
use common\enums\BaseEnum;
/**
 * 枚举
 *
 * Class GenderEnum
 * @package common\enums
 * @author YiiFrame <21931118@qq.com>
 */
class OvertimeEnum extends BaseEnum
{
    const Statutory = 0;
    const Public = 1;
    const Ordinary = 2;

    /**
     * @return array
     */
    public static function getMap(): array
    {
        return [
            self::Statutory => '法定节假日',
            self::Public => '公众假日',
            self::Ordinary => '平时',
        ];
    }

    public static function getValue($key): string
    {
        return static::getMap()[$key] ?? '';
    }
}